4D Pack v13.2AP Timestamp to GMT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Pack v13.2
AP Timestamp to GMT
|
AP Timestamp to GMT ( localDate ; localTime ; gmtDate ; gmtTime ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
localDate | Date |
![]() |
Local date to use for the conversion | |||||
localTime | Time |
![]() |
Local time to use for the conversion | |||||
gmtDate | Date |
![]() |
GMT date returned by the conversion | |||||
gmtTime | Time |
![]() |
GMT time returned by the conversion | |||||
Function result | String |
![]() |
GMT time in compliance with RFC standard | |||||
Compatibility note: Starting with version 12.1 of 4D, the AP Timestamp to GMT command can be replaced with the String command of 4D and by using the Date RFC 1123 constant. Note that the String command also lets you format dates and times according to major standards.
AP Timestamp to GMT converts local date and time to GMT date and time based on the machine location (set with the Date/Time control panel).
It returns a string in the following format: "Weekday, DD MM YYYY HH:MM:SS GMT". This format is in compliance with RFC 822 standard.
Given the date of Thursday 11/13/97 and the time of 2:35PM (Paris time zone), the function returns the string "Thu, 13 Nov 1997 13:35:00 GMT". $gmtd is set to 11/13/97 and $gmtt to 13:35:00.
$s:=AP Timestamp to GMT(Current date;Current time;$gmtd;$gmtt)
Product: 4D Pack
Theme: 4D_Pack : Utilities
Number:
61963
Created: 4D Pack 6.0.5
Modified: 4D Pack v12